package com.verlet.servicefeign.service;

import com.verlet.servicefeign.service.impl.SchedualServiceHiHystric;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author verlet
 * @date 2018/8/3
 */
@FeignClient(value = "service-hi",fallback = SchedualServiceHiHystric.class)
public interface SchedualServiceHi {

    /**
     * 调用service-hi中的/hello/word请求
     *
     * @param name 姓名
     * @return 请求的结果
     */
    @RequestMapping(value = "/hello/word",method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam("name")String name);
}
